import request from '@/utils/request'

// 查询考生考试成绩[针对单个项目的成绩]列表
export function listResult(query) {
  return request({
    url: '/business/examResults',
    method: 'get',
    params: query
  })
}

// 查询考生考试成绩[针对单个项目的成绩]详细
export function getResult(id) {
  return request({
    url: '/business/examResults/' + id,
    method: 'get'
  })
}

// 修改考生考试成绩[针对单个项目的成绩]
export function updateResult(data) {
  return request({
    url: '/business/examResults/updateResult',
    method: 'post',
    data: data
  })
}

// 批量修改考生单个成绩
export function batchUpdateResult(data) {
  return request({
    url: '/business/examResults/batchUpdateResult',
    method: 'post',
    data: data
  })
}

// 查询考点列表
export function getExamPlaces() {
  return request({
    url: '/business/examPlaces/list',
    method: 'get'
  })
}

// 查询考试项目列表
export function getExamProjects() {
  return request({
    url: '/business/examProjects/list',
    method: 'get'
  })
}
